/**
 * 
 */
package net.toocruel.iqismart.service.core;

import net.toocruel.iqismart.entity.common.Category;
import net.toocruel.iqismart.entity.constants.CategoryVisibility;
import net.toocruel.iqismart.entity.rbac.User;

import java.util.List;

/**
 * 角色服务
 * 
 * @author toocruel
 *
 */
public interface CategoryService {


    List<Category> findByVisibilityAndRoles(CategoryVisibility questions, User currentUser);

    Category findBySlug(String categorySlug);

    Category findById(Long categoryId);
}
